﻿using System;
using System.Xml.Serialization;

namespace Bee.Dto
{
    [XmlRoot("Source")]
    public class M3U8Dto
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string URL { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 封面链接
        /// </summary>
        public string CoverImageLink { get; set; }
        /// <summary>
        /// 时长
        /// </summary>
        public int Duration { get; set; }
        public string DurationStr
        {
            get
            {
                TimeSpan time = new TimeSpan(0, 0, Duration);
                return time.Hours + ":" + time.Minutes + ":" + time.Seconds;
            }
        }
        /// <summary>
        /// 标签
        /// </summary>
        public string Tag { get; set; }
        /// <summary>
        /// 网站名称
        /// </summary>
        public string Site_Name { get; set; }
    }
}
